Skip to content

feat: add HTTP admin endpoint#547

Merged
brooksmtownsend merged 1 commit intowasmCloud:mainfrom
rvolosatovs:feat/http-admin
Jan 14, 2025
Merged

feat: add HTTP admin endpoint#547
brooksmtownsend merged 1 commit intowasmCloud:mainfrom
rvolosatovs:feat/http-admin

Conversation

@rvolosatovs
Copy link
Member

Add HTTP admin endpoint as described at https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

Refs wasmCloud/wasmCloud#3963 wasmCloud/wasmCloud#3874

cargo run --bin wadm -- --http-admin [::1]:9090
$ curl http://localhost:9090/hello 
unknown endpoint `/hello`

$ curl http://localhost:9090/readyz
{"status":"ok"}

$ curl http://localhost:9090/livez 
{"status":"ok"}

$ curl --head http://localhost:9090/livez
HTTP/1.1 200 OK
date: Tue, 14 Jan 2025 10:29:30 GMT

$ curl --head http://localhost:9090/readyz
HTTP/1.1 200 OK
date: Tue, 14 Jan 2025 10:29:33 GMT

$ curl --head http://localhost:9090/hello
HTTP/1.1 404 Not Found
content-length: 25
date: Tue, 14 Jan 2025 10:29:35 GMT

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs rvolosatovs requested a review from a team as a code owner January 14, 2025 10:32
@brooksmtownsend brooksmtownsend merged commit 13faa57 into wasmCloud:main Jan 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants